package com.zhuiYun.project.api.commodityType.service;
import com.zhuiYun.project.api.commodity.entity.Commodity;
import com.zhuiYun.project.api.commodityType.entity.CommodityType;
import com.zhuiYun.project.api.commodityType.model.CommodityTypeModel;
import com.zhuiYun.project.common.errorCode.CommonException;
import com.zhuiYun.project.common.response.CommonResult;
import com.zhuiYun.project.util.pageUtil.PageRequest;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @ClassName CommodityTypeService
 * @Description TODO
 * Author 高
 * @Date 2023/4/3 20:35
 * @Version 1.0
 **/
public interface CommodityTypeService {
    /**
     * 分页查询
     * @param
     * @param
     * @return
     */
    CommonResult getCommodityTypeByPage(CommodityTypeModel commodityTypeModel, PageRequest pageRequest);
    /**
     * 新增类型
     * @param
     * @return
     */
    int CommodityTypeAdd(MultipartFile[] typeImg, CommodityTypeModel publish) throws CommonException;
    /**
     * 修改类型
     * @param
     * @return
     */
    int CommodityTypeUpdate(MultipartFile[] typeImg, CommodityTypeModel publish) throws CommonException;
    /**
     * 删除类型
     * @param id
     * @return
     */
    CommonResult delCommodityTypeById(Integer id) throws CommonException;
    /**
     * 树全查
     * @param
     * @return
     */
    List<CommodityType> getCommodityTypeList();
    /**
     * 删除回收站商品
     * @param
     * @return
     */
    CommonResult delCommodityType1(Integer id) throws CommonException;

}
